﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CodeTier.DAL;

namespace CodeTier.BUL
{
    public class KhachHangBUS
    {
        public int MaKH { get; set; }
        public string Email { get; set; }
        public string HoTen { get; set; }
        public string DiaChi { get; set; }
        public string DienThoai { get; set; }

        public KhachHangBUS(int makh)
        {
            var result = CommonDAO.XDMH.KhachHangs.Single(p => p.MaKH == makh);
            this.MaKH = result.MaKH;
            this.Email = result.Email;
            this.HoTen = result.HoTen;
            this.DiaChi = result.DiaChi;
            this.DienThoai = result.DienThoai;
        }
    }
}
